package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 停车场信息
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_car_park")
public class CarPark extends Model<CarPark> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "p_id", type = IdType.ASSIGN_ID)
    private String pId;
    /**
     * 停车场编码:自动生成，用于葵花码中的参数
     */
    @TableField("code")
    private String code;
    /**
     * 名称
     */
    @TableField("name")
    private String name;
    /**
     * 介绍
     */
    @TableField("introduce")
    private String introduce;
    /**
     * 总泊位
     */
    @TableField("park_num")
    private Integer parkNum;
    /**
     * 入场免费时长:入场15分钟后开始计费，15分钟内离场不计费
     */
    @TableField("into_free_time")
    private Integer intoFreeTime;
    /**
     * 缴费后免费时长:缴费后请在15分钟内离场，否侧将重新计费
     */
    @TableField("pay_free_time")
    private Integer payFreeTime;
    /**
     * 小程序码
     */
    @TableField("qr_code")
    private String qrCode;
    /**
     * 停车场类型
     */
    @TableField("car_park_type")
    private String carParkType;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
    /**
     * 人工确认入场
     */
    @TableField("confirm_in")
    private String confirmIn;
    /**
     * 是否第三方计费
     */
    @TableField("third_party_bill")
    private String thirdPartyBill;
    /**
     * 人工确认出场
     */
    @TableField("confirm_out")
    private String confirmOut;
    /**
     * 操作人
     */
    @TableField("operator")
    private String operator;
    /**
     * 机构ID
     */
    @TableField("org_id")
    private String orgId;
    /**
     * 是否启用
     */
    @TableField("enable")
    private String enable;
    /**
     * 是否自营
     */
    @TableField("own_business")
    private String ownBusiness;
    /**
     * 类型
     */
    @TableField("park_type")
    private String parkType;
    /**
     * 是否占道停车
     */
    @TableField("on_street")
    private String onStreet;
    /**
     * 车位类型
     */
    @TableField("park_space_type")
    private String parkSpaceType;
    /**
     * ETC支付
     */
    @TableField("etc_pay")
    private String etcPay;
    /**
     * 联系电话
     */
    @TableField("contact_number")
    private String contactNumber;
    /**
     * 分成比例
     */
    @TableField("share_ratio")
    private Double shareRatio;
    /**
     * 违约金额
     */
    @TableField("default_amount")
    private BigDecimal defaultAmount;
    /**
     * 道闸品牌
     */
    @TableField("gate_brand")
    private String gateBrand;
    public void freeData() {
        this.pId = null;
        this.code = null;
        this.name = null;
        this.introduce = null;
        this.parkNum = null;
        this.intoFreeTime = null;
        this.payFreeTime = null;
        this.qrCode = null;
        this.carParkType = null;
        this.addTime = null;
        this.updateTime = null;
        this.confirmIn = null;
        this.thirdPartyBill = null;
        this.confirmOut = null;
        this.operator = null;
        this.orgId = null;
        this.enable = null;
        this.ownBusiness = null;
        this.parkType = null;
        this.onStreet = null;
        this.parkSpaceType = null;
        this.etcPay = null;
        this.contactNumber = null;
        this.shareRatio = null;
        this.defaultAmount = null;
        this.gateBrand = null;
    }

}
